<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

 
<!-- Mirrored from test.csswg.org/suites/css2.1/20110323/xhtml1/font-size-113.xht by HTTrack Website Copier/3.x [XR&CO'2010], Thu, 05 Apr 2012 10:55:35 GMT -->
<head>

  <title>CSS Test: font-size - ex unit</title>

  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
  <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props" />
  <meta name="flags" content="FreeMono" />
  <meta name="assert" content="'em' and 'ex' length values when defining 'font-size' property refer to the computed font size of the parent element." />

  <style type="text/css"><![CDATA[
  div {font-family: FreeMono; font-size: 32px;}

  p {margin: 10px 30px;}

  #test {font-size: 16px;}
  #control, #test {font-size: 2.5ex;} 

  #control2 {font-family: FreeMono; font-size: 64px;} 
  ]]></style>

 </head>

 <body>

  <p>The 3 black squares below should have the same width and the same height.</p>

  <div>
   <p id="control">X</p>
   <p id="test">X</p>
  </div>

  <p id="control2">X</p>

 </body>

<!-- Mirrored from test.csswg.org/suites/css2.1/20110323/xhtml1/font-size-113.xht by HTTrack Website Copier/3.x [XR&CO'2010], Thu, 05 Apr 2012 10:55:35 GMT -->
</html>